package Cantella::DJabberd::Model::Admin::UserJid::Action::Update;

use Reaction::Class;
use aliased 'Reaction::InterfaceModel::Action::DBIC::Result::Update' => 'DBIC_Update';

class Update is DBIC_Update, which {

  has jabber_groups =>
    (
     is  => 'rw',
     isa => 'ArrayRef',
     valid_values => sub {
        shift->target_model->result_source
          ->related_source('jabber_group_jids')
            ->related_source('jabber_group')->resultset;
     }
    );

};


1;
